<?php
$top_title = "User's profile";
$top_snippet = "This is your user's profile administration page. All the information related with your user
 				account in Imageene.org is displayed here. You can modify all this information at any time";
include_once('header.php');

$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30,
);
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'value'	=> set_value('email'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
?>

<div id="main-content-wrapper">
	<?php echo form_open($this->uri->uri_string()); ?>
	<table id="form-profile-container" cellspacing="20px">
		<tr>
			<th>
				Your user account<br/>
			</th>
			<td>
				<div id="account-info-modify">
				<table class="form-table">
					<tr>
						<td class="label">
							<?=form_label('Password', $password['id'])?>:
						</td>
						<td>
							<?=form_password($password)?>
						</td>
						<td>
							<?=form_error($password['name'])?><?=isset($errors[$password['name']])?$errors[$password['name']]:''?>
						</td>
					</tr>
					<tr>
						<td class="label">
							<?=form_label('New email address', $email['id'])?>:
						</td>
						<td>
							<?=form_input($email)?>
						</td>
						<td>
							<?=form_error($email['name'])?><?=isset($errors[$email['name']])?$errors[$email['name']]:''?>
						</td>
					</tr>
					<tr>
						<td class="label">&nbsp;</td>
						<td>
							<?=form_submit('change', 'Send confirmation email')?>&nbsp;<a href="/users/profiles" class="reduced-font">cancel</a>
						</td>
					</tr>
				</table>
				
				</div>
			</td>
		</tr>
	</table>
	<?=form_close()?>
</div>